package com.mazaiting.redeye.base

import android.os.Environment
import com.mazaiting.easy.config.BaseConfig
import java.io.File.separator
import com.mazaiting.redeye.BuildConfig


/***
 *
 *
 *                                                    __----~~~~~~~~~~~------___
 *                                   .  .   ~~//====......          __--~ ~~
 *                   -.            \_|//     |||\\  ~~~~~~::::... /~
 *                ___-==_       _-~o~  \/    |||  \\            _/~~-
 *        __---~~~.==~||\=_    -_--~/_-~|-   |\\   \\        _/~
 *    _-~~     .=~    |  \\-_    '-~7  /-   /  ||    \      /
 *  .~       .~       |   \\ -_    /  /-   /   ||      \   /
 * /  ____  /         |     \\ ~-_/  /|- _/   .||       \ /
 * |~~    ~~|--~~~~--_ \     ~==-/   | \~--===~~        .\
 *          '         ~-|      /|    |-~\~~       __--~~
 *                      |-~~-_/ |    |   ~\_   _-~            /\
 *                           /  \     \__   \/~                \__
 *                       _--~ _/ | .-~~____--~-/                  ~~==.
 *                      ((->/~   '.|||' -_|    ~~-/ ,              . _||
 *                                 -_     ~\      ~~---l__i__i__i--~~_/
 *                                 _-~-__   ~)  \--______________--~~
 *                               //.-~~~-~_--~- |-------~~~~~~~~
 *                                      //.-~~~--\
 *                               神兽保佑
 *                              代码无BUG!
 * @author mazaiting
 * @date 2019/5/30
 * @decription 配置类
 */

class Config : BaseConfig() {
    companion object {
        /** 百度人脸访问类型 */
        const val FACE_GRANT_TYPE = "client_credentials"
        /** 百度人脸客户 ID */
        const val FACE_CLIENT_ID = "XQB0hStHv8fiF14iChVhyBe2"
        /** 百度人脸客户密钥 */
        const val FACE_CLIENT_SECRET = "jrFAfLTUNgxNpU0hItUIiI7sMrrAdXOz"
        /** QQ 登录 ID */
        const val QQ_ID = "101716960"
        /** QQ 登录 KEY */
        const val QQ_KEY = "f4d00b5ede2009f85fb94ecb0749a5f1"
        /** 友盟 */
        const val UMENG = "Umeng"
        /** 友盟 KEY */
        const val UMENG_KEY = "5d104e314ca3574e6d000125"
        /** 极光 KEY */
        const val JPUSH_KEY = "cd6e746ed01de988364a758f"


        /** 网络基址  */
        const val URL_BASE = BuildConfig.URL
        /** 百度人脸识别基址 */
        const val URL_FACE = "https://aip.baidubce.com/"
        /** 图片存储路径  */
        val FILE_PATH = Environment.getExternalStorageDirectory().path + separator + "RedEye" + "/"
        /** 登录事件 */
        const val UM_EVENT_LOGIN = "Login"
        /** 注册事件 */
        const val UM_EVENT_REGISTER = "Register"

        /** 存储的公钥键 */
        const val KEY_PUBLIC_KEY = "key_public_key"
        /** Token 键 */
        const val KEY_TOKEN = "key_token"
        /** 用户名键 */
        const val KEY_USER_NAME = "key_user_name"

        /** 获取人脸令牌 */
        const val URL_FACE_TOKEN = "oauth/2.0/token"
        /** 人脸检测 */
        const val URL_FACE_DETECT = "rest/2.0/face/v3/detect"

        /** 公钥 */
        const val URL_USER_PUBLIC_KEY = "user/publicKey"
        /** 登录 */
        const val URL_USER_LOGIN = "user/login"
        /** 注册 */
        const val URL_USER_REGISTER = "user/register"
        /** 用户详细信息 */
        const val URL_USER_INFORMATION = "user/information"
        /** 更新用户信息 */
        const val URL_USER_UPDATE_USER = "user/updateUser"
        /** 更新手机号 */
        const val URL_USER_UPDATE_PHONE = "user/updatePhone"


        /** 上传图片 */
        const val URL_UPLOAD_IMAGE = "upload/image"
        /** 获取签名 */
        const val URL_UPLOAD_GET_SIGN= "upload/getSign"

        /** 图片列表 */
        const val URL_WORM_FEED = "worm/feed"
        /** Tab 列表 */
        const val URL_WORM_MEDIA_LIST = "worm/mediaList"
    }

    override fun getTag(): String = "赤眼"

    override fun isDebug(): Boolean = BuildConfig.DEBUG

    override fun isUseLogger(): Boolean = true

    override fun isUseBlockCanary(): Boolean = true

    override fun isUseStetho(): Boolean = true

    override fun isUseCrash(): Boolean = true

    override fun isUseLeakCanary(): Boolean = true

}
